package io.gitee.twoke.generator.engine.impl.persistence;

import io.gitee.twoke.generator.engine.impl.generate.DataTable;
import io.gitee.twoke.generator.engine.impl.generate.impl.DataTableQueryImpl;
import io.gitee.twoke.generator.engine.impl.persistence.entity.DataTableEntity;
import io.gitee.twoke.generator.engine.impl.persistence.entity.data.DataManager;

import java.util.List;

public interface DataTableDataManager extends DataManager<DataTableEntity> {
    long findDataTableCountByQueryCriteria(DataTableQueryImpl dataTableQuery);
    List<DataTable> findDataTablesByQueryCriteria(DataTableQueryImpl dataTableQuery);

    long findDataTableCountByTableName(String tableName);

    DataTable findByTableName(String tableName);
}